package cn.niit.smbmsdemo.entity;

public class User {

/**
 *、id” bigint(20) unsigned NOT NULL AUTO_ INCREMENT,
 *
 'username’ varchar(64) NOT NULL COMMENT ‘用户名’。
 中
 'password' vorchor(32) NOT NULL COMMENT '密码'
 中
 "phone”char(11) DEFAULT NULL COMMENT " 手机号。
 中
 "email” varchor(64) DEFAULT NULL COMMENT ' 廊箱',
 'gmt_create' datetime DEFAULT NULL COMMENT '创建时网”。
 *
 'Login_time’ dotetime DEFAULT NULL COMMENT '登录时间”。
 */
     public User() {}
     public User(String username){
         //默认 new 的时候就初始化，  当作数据返回的对象
         this.username = "zhangsan";
         this.password = "123456";
     }
     private Long id;
     private String username;
     private String password;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
